/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-12-20 10:02:51
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-02-18 16:13:43
 * @FilePath: \cxl-driving-training\src\views\finance\bill\config.ts
 */
export const tableConfig = {
    headerOperation: [],
    search: [
        {
            key: 'certifidcation',
            type: 'text',
            name: '订单编号',
            modelValue: ''
        },
        {
            key: 'a',
            type: 'select',
            name: '报考类型',
            modelValue: '-1',
            options: [
                { value: '-1', label: '全部' },
                { value: '1', label: 'C1' },
                { value: '2', label: 'C2' },
                { value: '3', label: '摩托车' },
                { value: '4', label: '无人机' }
            ]
        },
        {
            key: 'b',
            type: 'select',
            name: '收支类型',
            modelValue: '-1',
            options: [
                { value: '-1', label: '全部' },
                { value: '1', label: '收入' },
                { value: '0', label: '支出' }
            ]
        },
        {
            key: 'c',
            type: 'select',
            name: '交易类型',
            modelValue: '-1',
            options: [
                { value: '-1', label: '全部' },
                { value: '1', label: '消费' },
                { value: '2', label: '退款' },
                { value: '3', label: '订单失效退款' },
                { value: '4', label: '转载' }
            ]
        },
        {
            key: 'dc',
            type: 'daterange',
            name: '交易时间',
            modelValue: ''
        }
    ],
    permission: [],
    table: {
        operationWidth: '82px',
        operation: [
            {
                type: 'delete',
                visible: { property: 'status', condition: '==', value: 0 },
                permission: [],
                className: 'delete',
                name: '删除'
            }
        ],
        propName: {
            a1: '订单编号',
            a2: '班别名称',
            a3: '报名类型',
            a4: '价格（元）',
            a9: '收支类型',
            a10: '交易类型',
            a11: '交易流水号',
            a15: '下单时间',
            a12: '交易时间',
            a13: '备注'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: [],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
